import request from '@/utils/request'

// 查询页签2.0列表
export function listProductCatalog(query) {
  return request({
    url: '/api/productCatalog/list',
    method: 'get',
    params: query
  })
}

// 查询页签2.0详细
export function getProductCatalog(catalogId) {
  return request({
    url: '/api/productCatalog/' + catalogId,
    method: 'get'
  })
}

// 新增页签2.0
export function addProductCatalog(data) {
  return request({
    url: '/api/productCatalog/add',
    method: 'post',
    data: data
  })
}

// 修改页签2.0
export function updateProductCatalog(data) {
  return request({
    url: '/api/productCatalog/update',
    method: 'post',
    data: data
  })
}

// 删除页签2.0
export function delProductCatalog(catalogId) {
  return request({
    url: '/api/productCatalog/delete/' + catalogId,
    method: 'GET'
  })
}
